package com.treasure.mall.biz.repository.life;

import com.treasure.mall.biz.entity.life.RelShopScopePO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.repository.life
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/10/13 4:37 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Repository
public interface RelShopScopeRepository extends JpaRepository<RelShopScopePO, Long> {

    /**
     * 判断是否存在
     *
     * @param shopId
     * @param scopeId
     * @return
     */
    long countByShopIdAndScopeId(Long shopId, Long scopeId);

    long deleteByShopId(Long shopId);
}
